# Using elasticsearch-certutil in Silent Mode
instances:
{% for instance in groups['elasticsearch'] %}
  - name: "{{ instance }}"
    ip:
      - "{{ hostvars[instance]['ansible_host'] }}"
    dns:
{% for group in hostvars[instance]['group_names'] %}
      - "{{ group }}.es.service.consul"
{% endfor %}
      - "{{ instance }}"
      - "{{ instance }}.{{ elk_domain }}"
      - "{{ instance }}.node.consul"
{% endfor %}
